Optimal. Leaf size=65 \[ \frac{\cos ^3(c+d x)}{3 a^2 d}-\frac{3 \cos (c+d x)}{a^2 d}+\frac{\sec ^3(c+d x)}{3 a^2 d}-\frac{3 \sec (c+d x)}{a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0837538, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3175, 2590, 270} \[ \frac{\cos ^3(c+d x)}{3 a^2 d}-\frac{3 \cos (c+d x)}{a^2 d}+\frac{\sec ^3(c+d x)}{3 a^2 d}-\frac{3 \sec (c+d x)}{a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 2590
Rule 270
Rubi steps
\begin{align*} \int \frac{\sin ^7(c+d x)}{\left (a-a \sin ^2(c+d x)\right )^2} \, dx &=\frac{\int \sin ^3(c+d x) \tan ^4(c+d x) \, dx}{a^2}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{\left (1-x^2\right )^3}{x^4} \, dx,x,\cos (c+d x)\right )}{a^2 d}\\ &=-\frac{\operatorname{Subst}\left (\int \left (3+\frac{1}{x^4}-\frac{3}{x^2}-x^2\right ) \, dx,x,\cos (c+d x)\right )}{a^2 d}\\ &=-\frac{3 \cos (c+d x)}{a^2 d}+\frac{\cos ^3(c+d x)}{3 a^2 d}-\frac{3 \sec (c+d x)}{a^2 d}+\frac{\sec ^3(c+d x)}{3 a^2 d}\\ \end{align*}
Mathematica [A] time = 0.0504638, size = 59, normalized size = 0.91 \[ \frac{-\frac{11 \cos (c+d x)}{4 d}+\frac{\cos (3 (c+d x))}{12 d}+\frac{\sec ^3(c+d x)}{3 d}-\frac{3 \sec (c+d x)}{d}}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 47, normalized size = 0.7 \begin{align*}{\frac{1}{{a}^{2}d} \left ({\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{3}}{3}}-3\,\cos \left ( dx+c \right ) -3\, \left ( \cos \left ( dx+c \right ) \right ) ^{-1}+{\frac{1}{3\, \left ( \cos \left ( dx+c \right ) \right ) ^{3}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.945454, size = 70, normalized size = 1.08 \begin{align*} \frac{\frac{\cos \left (d x + c\right )^{3} - 9 \, \cos \left (d x + c\right )}{a^{2}} - \frac{9 \, \cos \left (d x + c\right )^{2} - 1}{a^{2} \cos \left (d x + c\right )^{3}}}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62859, size = 117, normalized size = 1.8 \begin{align*} \frac{\cos \left (d x + c\right )^{6} - 9 \, \cos \left (d x + c\right )^{4} - 9 \, \cos \left (d x + c\right )^{2} + 1}{3 \, a^{2} d \cos \left (d x + c\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16131, size = 77, normalized size = 1.18 \begin{align*} -\frac{32 \,{\left (\frac{3 \,{\left (\cos \left (d x + c\right ) - 1\right )}^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right )}}{3 \, a^{2} d{\left (\frac{{\left (\cos \left (d x + c\right ) - 1\right )}^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]